<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/keyframes.css">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/media.css">
    <link rel="shortcut icon" href="./favicon.ico">
    <title>2048</title>
</head>

<body>
    <div class="container">
        <div class="heading">
            <h1 class="title">
                <a href="">2048</a>
            </h1>
            <div class="scores-container">
                <div class="score-container">
                    <p class="title">得分</p>
                    <P class="score">0</P>
                    <div class="score-addition">
                        +4
                    </div>
                </div>
                <div class="best-container">
                    <p class="title">最高分</p>
                    <P class="score">66666</P>
                </div>
            </div>
        </div>
        <div class="game-intro">
            <a href="" class="restart-btn">新游戏</a>
            <h2 class="subtitle" onclick="showLoginModel()" style="display: none;">
              登录以保存成绩
            </h2>
            <p class="above-game">
              合并数字到达<b>2048!</b>
            </p>
        </div>
        <div class="game-container">
            <div class="grid-container">
                <div class="grid-row">
                    <div class="grid-cell"></div>
                    <div class="grid-cell"></div>
                    <div class="grid-cell"></div>
                    <div class="grid-cell"></div>
                </div>
                <div class="grid-row">
                    <div class="grid-cell"></div>
                    <div class="grid-cell"></div>
                    <div class="grid-cell"></div>
                    <div class="grid-cell"></div>
                </div>
                <div class="grid-row">
                    <div class="grid-cell"></div>
                    <div class="grid-cell"></div>
                    <div class="grid-cell"></div>
                    <div class="grid-cell"></div>
                </div>
                <div class="grid-row">
                    <div class="grid-cell"></div>
                    <div class="grid-cell"></div>
                    <div class="grid-cell"></div>
                    <div class="grid-cell"></div>
                </div>
            </div>
            <div class="tile-container">

            </div>
            <div class="failure-container pop-container">
                <p>:(</span></p>
                <p>Game over!</p>
            </div>
            <div class="winning-container pop-container">
                <p>:)</p>
                <p>Winning!</p>
            </div>
        </div>
        <div style="margin-top: 10px;" class="score-list">
          <span style="text-decoration: underline;" onclick="Ranking()">查看排行榜</span>
          <span style="text-decoration: underline;" onclick="Ranking()">得分记录</span>
        </div>
    </div>
    <!-- 登录 -->
    <div class="login-container" style="display: none;">
      <div class="model">
        <span class="gg-close" onclick="hideLoginModel()"></span>
        <div class="model-title">登录</div>
        <div class="model-form">
          <div class="model-form-item"><input type="email" id="email" value="731701134@qq.com" placeholder="请输入邮箱"></div>
          <div class="model-form-item"><input type="text" id="code" placeholder="请输入验证码"><button class="code" onclick="getCode()">获取验证码</button></div>
          <button class="login" onclick="login()">登录</button>
        </div>
      </div>
    </div>
    <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
    <script src="js/config.js"></script>
    <script src="js/data.js"></script>
    <script src="js/utils.js"></script>
    <script src="js/event.js"></script>
    <script src="js/view.js"></script>
    <script src="js/game.js"></script>
    <script src="js/main.js"></script>
    <script src="js/service.js"></script>
</body>
</html>